package com.ym521.demo

import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.ym521.demo.databinding.ActivityMainBinding

class MainActivity : AppCompatActivity() {

    companion object {
        fun createIntent(mContext: Context): Intent {
            return Intent(mContext, MainActivity::class.java)
        }
    }

    private lateinit var binding: ActivityMainBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(binding.root)
        binding.tvNext.setOnClickListener {
            startActivity(MainActivity02.createIntent(this))
        }
    }

}